package cn.itsource.org.controller;

import cn.itsource.org.domain.TRole;
import cn.itsource.org.query.RoleQuery;
import cn.itsource.org.service.IRoleService;
import cn.itsource.utils.PageList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/role")
public class RoleController {
    @Autowired
    private IRoleService roleService;


    @PostMapping("/findpagebyparam")
    public PageList<TRole> findPageByParam(@RequestBody RoleQuery query){
        return roleService.findPageByParam(query);
    }
}
